
cc.Class({
    extends: cc.Component,

    properties: {
    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {

    },

    start () {
        this.secretArray = []
        this.targetArray = [1,2,1,1,2]
    },

    // update (dt) {},

    onTestButtonClicked:function (event) {
        let btnName = event.target.name
        if(btnName === "t1"){
            this.startTestClick(1)
        }else if(btnName === "t2"){
            this.startTestClick(2)
        }else if(btnName === "btn_close"){
            this.contentNode.active = false
        }else if(btnName === "btn_open_vertical_scene"){
            // cc.gg.baseUtil.setLandscape(2)
            // cc.director.loadScene('KYC')
            cc.loader.loadRes("windows/KYC", cc.Prefab, function (err, prefab) {
                let KYC = cc.instantiate(prefab)
                KYC.getComponent("KYC")
                cc.find("Canvas").addChild(KYC)
            }.bind(this))
        }
    },

});
